[INFO] cloning repository https://github.com/saadou11/ppm_rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/saadou11/ppm_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaadou11%2Fppm_rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaadou11%2Fppm_rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c5fefc2f77f39a461f9ac52d21a7a1697a593831
[INFO] building saadou11/ppm_rust against master#a29f341a8ac4e9325a5e37027b4215f50a76d06f for pr-101929
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaadou11%2Fppm_rust" "/workspace/builds/worker-0/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/saadou11/ppm_rust on toolchain a29f341a8ac4e9325a5e37027b4215f50a76d06f
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a29f341a8ac4e9325a5e37027b4215f50a76d06f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/saadou11/ppm_rust
[INFO] finished tweaking git repo https://github.com/saadou11/ppm_rust
[INFO] tweaked toml for git repo https://github.com/saadou11/ppm_rust written to /workspace/builds/worker-0/source/Cargo.toml
[INFO] crate git repo https://github.com/saadou11/ppm_rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a29f341a8ac4e9325a5e37027b4215f50a76d06f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: file found to be present in multiple build targets: /workspace/builds/worker-0/source/src/main.rs
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded map_in_place v0.1.0
[INFO] [stderr]   Downloaded scopeguard v0.2.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e92e462e59ac3446a933540fd361ddeb5362c86f92d432d6a560a917a465022e" "/opt/rustwide/cargo-home/bin/cargo" "+a29f341a8ac4e9325a5e37027b4215f50a76d06f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 5ed8f4c7270c16382ef762fe544f8e7e53f080831cdaa506859ce2975f515ea0
[INFO] running `Command { std: "docker" "start" "-a" "5ed8f4c7270c16382ef762fe544f8e7e53f080831cdaa506859ce2975f515ea0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5ed8f4c7270c16382ef762fe544f8e7e53f080831cdaa506859ce2975f515ea0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5ed8f4c7270c16382ef762fe544f8e7e53f080831cdaa506859ce2975f515ea0", kill_on_drop: false }`
[INFO] [stdout] 5ed8f4c7270c16382ef762fe544f8e7e53f080831cdaa506859ce2975f515ea0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e92e462e59ac3446a933540fd361ddeb5362c86f92d432d6a560a917a465022e" "/opt/rustwide/cargo-home/bin/cargo" "+a29f341a8ac4e9325a5e37027b4215f50a76d06f" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 952235a92844ecf18f52c3d9a85b93354beb45febbd6672e21402523c6215232
[INFO] running `Command { std: "docker" "start" "-a" "952235a92844ecf18f52c3d9a85b93354beb45febbd6672e21402523c6215232", kill_on_drop: false }`
[INFO] [stderr] warning: file found to be present in multiple build targets: /opt/rustwide/workdir/src/main.rs
[INFO] [stderr]    Compiling scopeguard v0.2.0
[INFO] [stderr]    Compiling ppm v1.0.0 (/opt/rustwide/workdir)
[INFO] [stderr]    Compiling cty v0.2.1
[INFO] [stderr]    Compiling map_in_place v0.1.0
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/main.rs:111:51
[INFO] [stdout]     |
[INFO] [stdout] 111 |             let mut buf = vec![Pixel::new(0,0,0); (self.heigth  * self.width )];
[INFO] [stdout]     |                                                   ^                         ^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 111 -             let mut buf = vec![Pixel::new(0,0,0); (self.heigth  * self.width )];
[INFO] [stdout] 111 +             let mut buf = vec![Pixel::new(0,0,0); self.heigth  * self.width];
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `header`, `pixel_vec`, `heigth`, `width` and `max_color` are never read
[INFO] [stdout]   --> src/main.rs:65:6
[INFO] [stdout]    |
[INFO] [stdout] 64 |  struct Image {
[INFO] [stdout]    |         ----- fields in this struct
[INFO] [stdout] 65 |      header: String,
[INFO] [stdout]    |      ^^^^^^
[INFO] [stdout] 66 |      pixel_vec : Vec<Pixel>,
[INFO] [stdout]    |      ^^^^^^^^^
[INFO] [stdout] 67 |      heigth: usize,
[INFO] [stdout]    |      ^^^^^^
[INFO] [stdout] 68 |      width: usize, 
[INFO] [stdout]    |      ^^^^^
[INFO] [stdout] 69 |      max_color: u8, 
[INFO] [stdout]    |      ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]    = note: `Image` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `new_with_file` is never used
[INFO] [stdout]    --> src/main.rs:163:4
[INFO] [stdout]     |
[INFO] [stdout] 163 | fn new_with_file<'a>(path: &'a str) -> Image {
[INFO] [stdout]     |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `filename_to_string` is never used
[INFO] [stdout]    --> src/main.rs:185:4
[INFO] [stdout]     |
[INFO] [stdout] 185 | fn filename_to_string(s: &str) -> io::Result<String> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `words_by_line` is never used
[INFO] [stdout]    --> src/main.rs:192:4
[INFO] [stdout]     |
[INFO] [stdout] 192 | fn words_by_line<'a>(s: &'a str) -> Vec<Vec<&'a str>> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_ppm` is never used
[INFO] [stdout]    --> src/main.rs:208:4
[INFO] [stdout]     |
[INFO] [stdout] 208 | fn read_ppm (a:&str){
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `write_ppm` is never used
[INFO] [stdout]    --> src/main.rs:214:4
[INFO] [stdout]     |
[INFO] [stdout] 214 | fn write_ppm (a:&str){
[INFO] [stdout]     |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]    --> src/main.rs:228:4
[INFO] [stdout]     |
[INFO] [stdout] 228 | fn main() {
[INFO] [stdout]     |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/main.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 19 |      fn new(red: u8, green: u8, blue: u8) -> Pixel {
[INFO] [stdout]    |         ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `get_red` is never used
[INFO] [stdout]   --> src/main.rs:24:8
[INFO] [stdout]    |
[INFO] [stdout] 24 |     fn get_red (self) -> u8 {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `get_green` is never used
[INFO] [stdout]   --> src/main.rs:28:8
[INFO] [stdout]    |
[INFO] [stdout] 28 |     fn get_green (self) -> u8 {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `get_blue` is never used
[INFO] [stdout]   --> src/main.rs:32:8
[INFO] [stdout]    |
[INFO] [stdout] 32 |     fn get_blue (self) -> u8 {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `invert` is never used
[INFO] [stdout]   --> src/main.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |      fn invert (&self) -> Pixel{
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `grayscale` is never used
[INFO] [stdout]   --> src/main.rs:40:8
[INFO] [stdout]    |
[INFO] [stdout] 40 |     fn grayscale (&self) -> Pixel{
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/main.rs:74:13
[INFO] [stdout]    |
[INFO] [stdout] 74 |          fn new(header:String, max_color: u8,width: usize, heigth: usize,pixel_vec:Vec<Pixel>) -> Image {
[INFO] [stdout]    |             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `get_width` is never used
[INFO] [stdout]   --> src/main.rs:78:13
[INFO] [stdout]    |
[INFO] [stdout] 78 |          fn get_width(&self) -> usize{
[INFO] [stdout]    |             ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `get_height` is never used
[INFO] [stdout]   --> src/main.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 82 |          fn get_height(&self) -> usize {
[INFO] [stdout]    |             ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `get_max_color` is never used
[INFO] [stdout]   --> src/main.rs:86:13
[INFO] [stdout]    |
[INFO] [stdout] 86 |          fn get_max_color(&self) -> u8 {
[INFO] [stdout]    |             ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `invert` is never used
[INFO] [stdout]   --> src/main.rs:90:13
[INFO] [stdout]    |
[INFO] [stdout] 90 |          fn invert(&self)-> Image {
[INFO] [stdout]    |             ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `gray_scale` is never used
[INFO] [stdout]    --> src/main.rs:110:13
[INFO] [stdout]     |
[INFO] [stdout] 110 |          fn gray_scale(&self)-> Image {
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `save` is never used
[INFO] [stdout]    --> src/main.rs:129:13
[INFO] [stdout]     |
[INFO] [stdout] 129 |          fn save (&self , path :&Path) -> io::Result<()>  {
[INFO] [stdout]     |             ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `square` is never used
[INFO] [stdout]    --> src/main.rs:202:8
[INFO] [stdout]     |
[INFO] [stdout] 202 |     fn square(val: i32) -> i32;
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ppma_write_test` is never used
[INFO] [stdout]    --> src/main.rs:203:9
[INFO] [stdout]     |
[INFO] [stdout] 203 |      fn ppma_write_test ( file_out_name: *const u8);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ppma_read_test` is never used
[INFO] [stdout]    --> src/main.rs:204:8
[INFO] [stdout]     |
[INFO] [stdout] 204 |     fn ppma_read_test ( inputname: *const u8 );
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: linking with `cc` failed: exit status: 1
[INFO] [stdout]   |
[INFO] [stdout]   = note: "cc" "-Wl,--version-script=/tmp/rustc2Y1o0h/list" "-m64" "/tmp/rustc2Y1o0h/symbols.o" "/opt/rustwide/target/debug/deps/src.src.74308f8c-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/src.src.74308f8c-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/src.26x6n15bybfaeavk.rcgu.rmeta" "/opt/rustwide/target/debug/deps/src.53z3g27vdl5718kr.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rustwide/target/debug/deps" "-L" "/home/saadou/Documents/M1/Rust/ppm_rust/src" "-L" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lppma_io" "-Wl,-Bstatic" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-3dd5f78c3b43746e.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-e13cbb326bcd01a4.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-13ac6af5403a52c8.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-a7b8febdd2acb289.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-343513f0726f71ed.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-8f833d900bfb98aa.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-e97a7960ca6216c8.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-fb8c561e8c8eb24d.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-a45121889bb564ec.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-f943c2d34bd4b56d.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-72ce2aaa649404e0.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-ac5d08ad5339e92e.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-dacfda262d5656fb.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-e2056a834ba0712c.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-a60649c148c6e2db.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-3e961d059b9bcde7.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-20f26f875d0170e2.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-522518611024dce5.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-05898138a596088a.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-5b83a1df856cf582.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/libsrc.so" "-shared" "-Wl,-zrelro,-znow" "-nodefaultlibs"
[INFO] [stdout]   = note: /usr/bin/ld: cannot find -lppma_io
[INFO] [stdout]           collect2: error: ld returned 1 exit status
[INFO] [stdout]           
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error; 24 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `ppm` due to 2 previous errors; 24 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "952235a92844ecf18f52c3d9a85b93354beb45febbd6672e21402523c6215232", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "952235a92844ecf18f52c3d9a85b93354beb45febbd6672e21402523c6215232", kill_on_drop: false }`
[INFO] [stdout] 952235a92844ecf18f52c3d9a85b93354beb45febbd6672e21402523c6215232
